using System;
using Server;
using Server.Gumps;
using Server.Commands;
using Server.Items;
using Server.Mobiles;

namespace Server.Gumps
{
	public class SkillGump : Gump
	{
        public static void Initialize()
        {
            CommandSystem.Register("skillGump", AccessLevel.Player, new CommandEventHandler(SkillGump_OnCommand));
        }

        public SkillGump(PlayerMobile m)
			: base( 0, 0 )
		{
			this.Closable=true;
			this.Disposable=true;
			this.Dragable=true;
			this.Resizable=false;
			this.AddPage(0);
			this.AddImage(77, 34, 0);
			this.AddLabel(245, 144, 0x480, @m.Skills[SkillName.LavorazioneMetalli].Value.ToString("#.0"));
            this.AddLabel(245, 161, 0x480, @m.Skills[SkillName.EstrazioneMinerali].Value.ToString("#.0"));
            this.AddLabel(245, 178, 0x480, @m.Skills[SkillName.Carpenteria].Value.ToString("#.0"));
            this.AddLabel(245, 195, 0x480, @m.Skills[SkillName.TagliareLegna].Value.ToString("#.0"));
            this.AddLabel(245, 212, 0x480, @m.Skills[SkillName.FabbricazioneArchi].Value.ToString("#.0"));
            this.AddLabel(245, 231, 0x480, @m.Skills[SkillName.Ingegneria].Value.ToString("#.0"));
            this.AddLabel(245, 246, 0x480, @m.Skills[SkillName.Sarto].Value.ToString("#.0"));
            this.AddLabel(245, 263, 0x480, @m.Skills[SkillName.Agricoltura].Value.ToString("#.0"));
            this.AddLabel(245, 280, 0x480, @m.Skills[SkillName.Pesca].Value.ToString("#.0"));
            this.AddLabel(245, 297, 0x480, @m.Skills[SkillName.Cucinare].Value.ToString("#.0"));
            this.AddLabel(245, 314, 0x480, @m.Skills[SkillName.Alchimia].Value.ToString("#.0"));
            this.AddLabel(245, 333, 0x480, @m.Skills[SkillName.ScriverePergamene].Value.ToString("#.0"));
            this.AddLabel(245, 349, 0x480, @m.Skills[SkillName.AddestrareAnimali].Value.ToString("#.0"));
            this.AddLabel(440, 142, 0x480, @m.Skills[SkillName.Taglio].Value.ToString("#.0"));
            this.AddLabel(440, 159, 0x480, @m.Skills[SkillName.Contundenti].Value.ToString("#.0"));
            this.AddLabel(440, 176, 0x480, @m.Skills[SkillName.Punta].Value.ToString("#.0"));
            this.AddLabel(440, 193, 0x480, @m.Skills[SkillName.ArmiDaTiro].Value.ToString("#.0"));
			this.AddLabel(440, 210, 0x480, @m.Skills[SkillName.Lottare].Value.ToString("#.0"));
			this.AddLabel(440, 229, 0x480, @m.Skills[SkillName.Tattica].Value.ToString("#.0"));
			this.AddLabel(440, 244, 0x480, @m.Skills[SkillName.Parare].Value.ToString("#.0"));
			this.AddLabel(440, 410, 0x480, @m.Skills[SkillName.Anatomia].Value.ToString("#.0"));
			this.AddLabel(440, 341, 0x480, @m.Skills[SkillName.ConoscenzeAnimali].Value.ToString("#.0"));
			this.AddLabel(440, 291, 0x480, @m.Skills[SkillName.ConoscenzeArmi].Value.ToString("#.0"));
			this.AddLabel(440, 359, 0x480, @m.Skills[SkillName.IdentificareOggetti].Value.ToString("#.0"));
			this.AddLabel(440, 376, 0x480, @m.Skills[SkillName.LinguaggioDeiMorti].Value.ToString("#.0"));
			this.AddLabel(440, 392, 0x480, @m.Skills[SkillName.Autopsia].Value.ToString("#.0"));
			this.AddLabel(440, 325, 0x480, @m.Skills[SkillName.ConoscenzaTerreSelvagge].Value.ToString("#.0"));
			this.AddLabel(440, 307, 0x480, @m.Skills[SkillName.ConoscenzeArcane].Value.ToString("#.0"));
			this.AddLabel(611, 262, 0x480, @m.Skills[SkillName.Cercare].Value.ToString("#.0"));
            this.AddLabel(611, 193, 0x480, @m.Skills[SkillName.Spiare].Value.ToString("#.0"));
			this.AddLabel(611, 143, 0x480, @m.Skills[SkillName.Rubare].Value.ToString("#.0"));
			this.AddLabel(611, 211, 0x480, @m.Skills[SkillName.Nascondersi].Value.ToString("#.0"));
			this.AddLabel(611, 228, 0x480, @m.Skills[SkillName.MuoversiSilenzioso].Value.ToString("#.0"));
			this.AddLabel(611, 244, 0x480, @m.Skills[SkillName.RimuovereTrappole].Value.ToString("#.0"));
			this.AddLabel(611, 177, 0x480, @m.Skills[SkillName.Scassinare].Value.ToString("#.0"));
			this.AddLabel(611, 159, 0x480, @m.Skills[SkillName.Avvelenare].Value.ToString("#.0"));
			this.AddLabel(607, 426, 0x480, @m.Skills[SkillName.Elemosinare].Value.ToString("#.0"));
			this.AddLabel(607, 357, 0x480, @m.Skills[SkillName.Curare].Value.ToString("#.0"));
			this.AddLabel(607, 307, 0x480, @m.Skills[SkillName.Veterinaria].Value.ToString("#.0"));
			this.AddLabel(607, 375, 0x480, @m.Skills[SkillName.Meditare].Value.ToString("#.0"));
			this.AddLabel(607, 392, 0x480, @m.Skills[SkillName.ResistenzaMagia].Value.ToString("#.0"));
			this.AddLabel(607, 408, 0x480, @m.Skills[SkillName.CercareTracce].Value.ToString("#.0"));
			this.AddLabel(607, 341, 0x480, @m.Skills[SkillName.Suonare].Value.ToString("#.0"));
            this.AddLabel(607, 323, 0x480, @m.Skills[SkillName.Orientamento].Value.ToString("#.0"));
		}

        private static void SkillGump_OnCommand(CommandEventArgs e)
        {
            e.Mobile.SendGump(new SkillGump(e.Mobile as PlayerMobile));
        }
	}
}


